from datetime import datetime
from typing import Optional

from pydantic import BaseModel

from app.schemas.base_model import OrmBaseModel


class ConstantBase(OrmBaseModel):
    id: Optional[int]
    code: Optional[str]
    itemCode: Optional[str]
    itemName: Optional[str]
    itemValue: Optional[str]
    orderNum: Optional[int]
    state: Optional[str]
    createdDate: Optional[datetime]
    updatedDate: Optional[datetime]


class ConstantQuery(ConstantBase):
    pass
